function getArg<T>(arg: T): T {
  return arg;
}

console.log(typeof getArg(123));
console.log(typeof getArg('Hello'));

function getArgsArr<T>(arg: Array<T>) {
  return arg;
}

console.log(getArgsArr([1, 2, 3]) instanceof Array);
console.log(getArgsArr(['1', '2', '3']) instanceof Array);
